package com.ctshk.rpc.booking.req.unsubscribe.save;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 退订详情
 * </p>
 *
 * @author 谢诗宏
 * @since 2021-03-25
 */
@Data


@ApiModel(value = "SupplierUnsubscribeDetailsSaveReq对象", description = "退订详情")
public class SupplierUnsubscribeDetailsSaveReq implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "退订单id")
    private Long supplierUnsubscribeId;

    @NotBlank(message = "退订服务不能为空")
    @ApiModelProperty(value = "退订服务")
    private String unsubscribeService;

    @ApiModelProperty(value = "退订描述")
    private String unsubscribeDescription;

    @NotNull(message = "单价不能为空")
    @Min(value = 0, message = "单价必须大于等于0")
    @ApiModelProperty(value = "单价")
    private BigDecimal price;

    @NotNull(message = "数量不能为空")
    @Min(value = 1, message = "单价必须大于等于1")
    @ApiModelProperty(value = "数量")
    private Integer number;

    @ApiModelProperty(value = "备注")
    private String remarks;

}
